package Model;

/**
 * Write a description of class Kunde here.
 * 
 * @author Gruppe 4 
 * @version 14/12/11
 */
public class Kunde extends Person
{
    // instance variables - replace the example below with your own
    private double rabatType;
    private int betalingstype;
    private final int limitRabat = 20;
    private int id;

    /**
     * Constructor for objects of class Kunde
     * @param navn, adresse, tlfnr, by, email, rabat, betalingsbetingelser
     */
    public Kunde(int id, String navn, String adresse, int tlfnr, String by, String email, double rabat, int betalingsbetingelser)
    {
        super(navn,adresse,tlfnr,by,email); //extention from Person
        this.rabatType = rabat;
        this.betalingstype = betalingsbetingelser;
        this.id = id;
    }

    /**
     * Set metode for rabatType
     * @param rabat
     */
    public void setRabatType(double rabat)
    {
        this.rabatType = rabat;
    }

    /**
     * Set metode for betalingstype
     * @param dage
     */
    public void setBetalingstype(int dage)
    {
        this.betalingstype = dage;
    }

    /**
     * get metode for rabatType
     * @return rabatType
     */
    public double getRabatType()
    {
        return this.rabatType;
    }

    /**
     * get metode for betalingstype
     * @return betalingstype
     */
    public int getBetalingsType()
    {
        return this.betalingstype;
    }

    /**
     * get metode for limitRabat
     * limitRabat vil altid være 20.
     * @return limitRabat
     */
    public int getlimitRabat()
    {
        return limitRabat;
    }

    /**
     * this mehod returns id
     * 
     * @param nothing
     * @return id
     */
    public int getId()
    {
        return id;
    }

}
